liblockdep: Fix undefined symbol prandom_u32
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:09:19 +0000 (21:09 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Fri, 9 Feb 2018 12:58:52 +0000 (12:58 +0000)
commit1f2dc5913f2b4c9d89a58642030dec27e5097758
tree3c5e04748204e048ed99ba86a33fae8acf0cff80
parent58c24964fd1086b162b931672c27d10ecc295b2b
liblockdep: Fix undefined symbol prandom_u32

__lock_pin_lock() now calls prandom_u32() which is not defined in
liblockdep.  __lock_pin_lock() and its caller lock_pin_lock() are dead
code in liblockdep, but we still need to provide a definition of
prandom_u32() in case lazy binding is disabled.

Fixes: e7904a28f533 ("locking/lockdep, sched/core: Implement a better ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-undefined-symbol-prandom_u32.patch
tools/lib/lockdep/lockdep.c